package com.richpay.basejava.base13.anonymou;

public class X {
    public void fun1(A a){
        a.printInfo();
    }

    public void fun2(){
        this.fun1(new B());
        this.fun1(new A() {
            @Override
            public void printInfo() {
                System.out.println("Hello world");
            }
        });
    }
}
